package com.freewater.springboot.demo.ioc.genericdi;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@ComponentScan("com.freewater.springboot.demo.ioc.genericdi")
public class AppConfig {

    @Bean
    public List<Animal> animals(List<Animal> animals) {
        return animals;
    }

    @Bean
    public List<AnimalBusiness> animalBusinesses(List<AnimalBusiness> businesses) {
        return businesses;
    }
}
